﻿@model BaseballGame.Models.Player

@{
    ViewBag.Title = "PlayerDetails";
}

<h2>PlayerDetails</h2>

<fieldset>
    <legend>Player</legend>
  <table>
     <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.player_name) </b>
        </td>
        <td>
        @Html.DisplayFor(model => model.player_name)
        </td>
     </tr>
     <tr>
        <td>
        <b>@Html.DisplayNameFor(model => model.position)</b>
        </td>
        <td>
         @Html.Raw(ViewBag.pos) 
        </td>
     </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.at_bat)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.at_bat)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.runs)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.runs)
        </td>
   </tr>
   <tr>
      <td>
        <b> @Html.DisplayNameFor(model => model.hits)</b>
       </td>
       <td>
        @Html.DisplayFor(model => model.hits)
       </td>
   </tr>
   <tr>
       <td>
        <b> @Html.DisplayNameFor(model => model.runs_batted_in)</b>
        </td>
       <td>
        @Html.DisplayFor(model => model.runs_batted_in)
        </td>
   </tr>
   <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.home_runs)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.home_runs)
       </td>
   </tr> 
   <tr>
       <td>
        <b> @Html.DisplayNameFor(model => model.balls_on_balls)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.balls_on_balls)
       </td>
    </tr>
    <tr>
        <td>
         <b>@Html.DisplayNameFor(model => model.strike_outs)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.strike_outs)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.stolen_bases)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.stolen_bases)
        </td>
    </tr>
    <tr>
        <td>
         <b>@Html.DisplayNameFor(model => model.left_on_base)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.left_on_base)
        </td>
    </tr>
   <tr>
       <td>
        <b> @Html.DisplayNameFor(model => model.batting_avg)</b>
        </td>
       <td>
        @Html.DisplayFor(model => model.batting_avg)
       </td>
  </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.innings_pitched)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.innings_pitched)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.runs_allowed)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.runs_allowed)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.earned_runs_allowed)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.earned_runs_allowed)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.home_runs_allowed)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.home_runs_allowed)
        </td>
    </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.walks_hit_by_ip)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.walks_hit_by_ip)
        </td>
   </tr>
    <tr>
        <td>
        <b> @Html.DisplayNameFor(model => model.earned_runs_average)</b>
        </td>
        <td>
        @Html.DisplayFor(model => model.earned_runs_average)
        </td>
    </tr>
  </table>
</fieldset>
<p>
    @Html.ActionLink("Back to manage team", "Index")
</p>
<p>
    @Html.ActionLink("Player list", "../AddPlayer")
</p>
